/* Java data structure of a NewEvent entry */
/* Craig Niles */
/* CS411, SchedulPRO Team Green */
/* 3/19/2012 */
import java.sql.*;
import org.joda.time.*;

public class NewEvent {
    private int id;
    private String name;
    private int coordinator_id;
    
    private DateTime start;
    private DateTime stop;

    private long event_length;

    public NewEvent() {
    }

    public NewEvent(int id, String name, int coordinator_id, DateTime start, DateTime stop, int event_length) {
	this.id = id;
	this.name = name;
	this.coordinator_id = coordinator_id;
	this.start = start;
	this.stop = stop;
	this.event_length = event_length;
    }

    public int getId() { return id; }
    public String getName() { return name; }
    public int getCoordinatorId() { return coordinator_id; }

    public DateTime getStart() { return start; }
    public DateTime getStop() { return stop; }

    public long getStartMS() { return start.getMillis(); }
    public long getStopMS() { return stop.getMillis(); }

    public long getLength() { return event_length; }
}
